@extends('admin/layout')
@section('title','商品管理')
@section('introduce')
<script src="{{asset('admin/local/imageselect/imageselect.js')}}"></script>
<link rel="stylesheet" href="{{asset('admin/local/imageselect/imageselect.css')}}"/>
@stop
@section('content')
<!-- Content Header (Page header) -->
<section class="content-header">
  <h1>
    商品列表
    <small>更改商品属性</small>
  </h1>
  <ol class="breadcrumb">
  	<li><a href="{{asset('admin/index')}}"><i class="fa fa-th"></i> 管理首页</a></li>
    <li><i class="fa fa-shopping-cart"></i> 商品管理</li>
    <li><a href="{{asset('admin/product')}}"><i class="fa fa-list-ul"></i> 商品属性列表</a></li>
    <li class="active">更改商品属性</li>
  </ol>
</section>

<!-- Main content -->
<section class="content">
	<div class="row">
		<div class="col-md-12">
	  	  <!-- box start -->
          <div class="box box-info">
	        <div class="box-header with-border">
	          <h3 class="box-title"><i class="fa fa-cart-plus"> 更改商品属性</i></h3>
	        </div>
          
          @if(session('error'))
            {{session('error')}}
          @endif
          @if(count($errors)>0)
          <div class="alert alert-danger">
            <ul>
              @foreach($errors->all() as $error)
                <li>{{$error}}</li>
              @endforeach
            </ul>
          </div>
          @endif
          
            <!-- form start -->
            <form class="form-horizontal" id="main_form" action="{{asset('admin/productattrupdate')}}" method="post" enctype="multipart/form-data">
              {{csrf_field()}}
              
              <input type="hidden" name="pro_id" value="{{$data->pro_id}}"/>
              <input type="hidden" name="cosir_id" value="{{$data->cosir_id}}"/>
              <input type="hidden" name="old_stocknum" value="{{$data->attr_stocknum}}"/>
              <div class="box-body">
                
                <div class="form-group {{--has-error--}}">
                  <label for="inputkeyword" class="col-sm-2 col-md-2 control-label">属性关键字：</label>
                  <div class="col-sm-6 col-md-5">
                    <input type="text" class="form-control" id="inputkeyword" name="keyword" value="{{$data->keyword}}" disabled>
                  </div>
                  <span class="help-block col-sm-4 col-md-5">
                  <!--
                  <i class="fa fa-times text-red"> </i>
                  -->
                  </span>
                </div>
                <div class="form-group">
                  <label for="inputtitle" class="col-sm-2 col-md-2 control-label">库存数：</label>
                  <div class="col-sm-6 col-md-5">
                    <input type="text" class="form-control" id="inputkeyword" name="stocknum" value="{{$data->attr_stocknum}}">
                  </div>
                  <span class="help-block col-sm-4 col-md-5">
                  <!--
                  <i class="fa fa-times text-red"> </i>
                  -->
                  </span>
                </div>
                
                
              </div> 
              <div class="box-footer">
                <input type="reset" class="btn btn-default col-sm-2 col-sm-offset-2 col-md-2 col-md-offset-2" value="清空"/>
                <button class="btn btn-info col-xs-offset-1 col-sm-2 col-sm-offset-1 col-md-2 col-md-offset-1">提交</button>
              </div>
            </form>
            <!-- /.form -->
          </div>
   
   <!-- /.box -->
	    </div>
    </div>
</section>
<!-- /.content -->
@stop